//
//  Kratos_HttpConstant.h
//  kk_framework
//
//  Created by 7yao.top on 2018/11/7.
//  Copyright © 2018年 7yao.top. All rights reserved.
//

#ifndef Kratos_HttpConstant_h
#define Kratos_HttpConstant_h
#import <UIKit/UIKit.h>
#import "Kratos_RequestInterceptorProtocol.h"
#import "Kratos_ResponseInterceptorProtocol.h"
@class Kratos_HttpResponse,Kratos_HttpRequst;





typedef NS_ENUM(NSInteger, Kratos_HttpRequestType) {
    Kratos_HttpRequestTypeGet,
    Kratos_HttpRequestTypePost
};




typedef NS_ENUM (NSUInteger, Kratos_HttpResponseStatus){
    Kratos_HttpResponseStatusSuccess = 1,
    Kratos_HttpResponseStatusError
};

//响应配置 Block
typedef void (^Kratos_HttpResponseBlock)(Kratos_HttpResponse * _Nullable response);
typedef void (^Kratos_GroupResponseBlock)(NSArray<Kratos_HttpResponse *> * _Nullable responseObjects, BOOL isSuccess);
typedef void (^Kratos_NextBlock)(Kratos_HttpRequst * _Nullable request, Kratos_HttpResponse * _Nullable responseObject, BOOL * _Nullable isSent);

/// 请求配置 Block
typedef void (^Kratos_RequestConfigBlock)(Kratos_HttpRequst * _Nullable request);



#endif /* Kratos_HttpConstant_h */
